export enum ArticleStatus {
  DRAFT = 'draft',
  PUBLISHED = 'published',
  DELETED = 'deleted',
}

export type ArticleStatusType = 'draft' | 'published' | 'deleted'

export interface IArticleListResponse {
  id: string | number
  title: string
  coverImage: string
  slug: string
  status: ArticleStatusType
  publishedAt: string
  content: string
  summary: string
  views: string
  likes: string
  commentsCount: string
  isCommentEnabled: string
  isTop: string
  recommendWeight: string
  createdAt: string
  updatedAt: string
}

export interface IArticleAddRequest {
  title: string
  coverImage?: string
  content: string
  summary?: string
  isCommentEnabled: string
  isTop: string
  recommendWeight: string
}

// {
//     "id": "654321",
//     "title": "Vue3 入门教程",
//     "slug": "vue3-tutorial",
//     "author_id": "12345",
//     "status": "published",
//     "content": "## 欢迎学习 Vue3...",
//     "summary": "本文介绍 Vue3 的核心用法...",
//     "cover_image": "/images/vue3-cover.jpg",
//     "category_id": "frontend",
//     "tags": ["前端", "Vue3"],
//     "views": 1000,
//     "likes": 150,
//     "comments_count": 30,
//     "created_at": "2023-10-01T08:00:00Z",
//     "published_at": "2023-10-02T09:00:00Z",
//     "meta_keywords": ["Vue3", "教程"],
//     "meta_description": "Vue3 最新技术教程，适合初学者快速入门..."
//   }
